package com.vil.service;

import com.vil.common.ServerResponse;
import com.vil.entity.Village;

import java.util.List;

public interface VillageService {
    //动态增加
    ServerResponse insertSelective(Village record);

    //根据主键删除
    ServerResponse deleteByPrimaryKey(Long id);

    //根据主键动态修改
    ServerResponse updateByPrimaryKeySelective(Village record);

    //多条件分页查询
    ServerResponse getListByManyConditions(Integer pageIndex,Integer pageSize,Village name);

    //登录验证
//    ServerResponse loginCheck(String name,String number);

    ServerResponse getListByManyCondition(Integer pageIndex,Integer pageSize,String name);

    //根据ID查询
    ServerResponse getById(Long id);

    //批量删除
    ServerResponse deleteMany(Long[] ids);

    ServerResponse isExist(String name);

    ServerResponse getListVillage();
    //查询小区名
    List<String> getListVillageName();
}
